//package com.many.common;
//
//import com.many.common.interceptor.LoginInterceptor;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @ClassName AppConfig
// * @Description TODD
// * @Author James
// * @Date 2022/8/1
// * @Version 1.0
// **/
//@Configuration
//public class AppConfig implements WebMvcConfigurer {
//
//    @Bean
//    public BCryptPasswordEncoder getBCryptPasswordEncoder() {
//        return new BCryptPasswordEncoder();
//    }
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        LoginInterceptor loginInterceptor = new LoginInterceptor();
//        registry.addInterceptor(loginInterceptor)
//                .addPathPatterns("/**")
//                .excludePathPatterns("/**/login.html")
//                .excludePathPatterns("/**/css/**.css")
//                .excludePathPatterns("/**/images/**")
//                .excludePathPatterns("/**/fonts/**")
//                .excludePathPatterns("/**/js/**.js")
//                .excludePathPatterns("/**/scss/**")
//                .excludePathPatterns("/**/admin/login")
//                .excludePathPatterns("/**/admin/register")
//                .excludePathPatterns("/**/admin/logout");
//    }
//
//}
